package cn.cxy.myapplication

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
//        chatBackgroundLayout.setOnClickListener {
//            Toast.makeText(this, "哈哈哈", Toast.LENGTH_SHORT).show()
//        }
        chatBackgroundLayout.setOnClickListener {
            startActivity(Intent(this, NewActivity::class.java))
        }
    }
}